package responses

import (
	"github.com/edgexfoundry/edgex-go/internal/app/dtos"
	"github.com/edgexfoundry/go-mod-core-contracts/v2/dtos/common"
)

type MultiProductAttributesResponse struct {
	common.BaseWithTotalCountResponse `json:",inline"`
	ProductAttributes                 []dtos.ProductAttribute `json:"productAttributes"`
}

func NewMultiProductAttributesResponse(requestId string, message string, statusCode int, totalCount uint32, productAttributes []dtos.ProductAttribute) MultiProductAttributesResponse {
	return MultiProductAttributesResponse{
		BaseWithTotalCountResponse: common.NewBaseWithTotalCountResponse(requestId, message, statusCode, totalCount),
		ProductAttributes:          productAttributes,
	}
}
